package annotate;

import annotate.service.impl.serviceimpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Annotate {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("applicationContextAnnotate.xml");
        serviceimpl serviceimpl = (annotate.service.impl.serviceimpl) classPathXmlApplicationContext.getBean("serviceimpl");
        serviceimpl.say();
        classPathXmlApplicationContext.close();
    }
}
